import request from '@/utils/request'

export default {
  messageNotify(message) {
    return request({
      url: `/educenter/edu-message/sendOneWebSocket`,
      method: 'post',
      data: message
    })
  },
  getMyMessageList(page, limit, memberId) {
    return request({
      url: `/educenter/edu-message/pageMessage/${page}/${limit}`,
      method: 'get',
      params: { memberId }
    })
  },
  checkUnRead() {
    return request({
      url: `/educenter/edu-message/checkUnRead`,
      method: 'get'
    })
  }
}
